.class Les/j9$a;
.super Ljava/lang/Object;
.source "MediaMuxerWrapper.java"

# interfaces
.implements Les/l9$h;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/j9;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Les/j9;


# direct methods
.method constructor <init>(Les/j9;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Les/l9;ZLandroid/media/MediaFormat;)I
    .locals 1

    if-nez p2, :cond_2

    const-string p1, "rotation-degrees"

    .line 10
    invoke-virtual {p3, p1}, Landroid/media/MediaFormat;->containsKey(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 11
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    monitor-enter p1

    .line 12
    :try_start_0
    iget-object p2, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p2}, Les/j9;->e(Les/j9;)Les/h9;

    move-result-object p2

    if-eqz p2, :cond_1

    const-string p2, "rotation-degrees"

    .line 13
    invoke-virtual {p3, p2}, Landroid/media/MediaFormat;->getInteger(Ljava/lang/String;)I

    move-result p2

    if-eqz p2, :cond_0

    const/16 v0, 0x5a

    if-eq p2, v0, :cond_0

    const/16 v0, 0xb4

    if-eq p2, v0, :cond_0

    const/16 v0, 0x10e

    if-ne p2, v0, :cond_1

    .line 14
    :cond_0
    iget-object v0, p0, Les/j9$a;->a:Les/j9;

    invoke-static {v0}, Les/j9;->e(Les/j9;)Les/h9;

    move-result-object v0

    invoke-virtual {v0, p2}, Les/h9;->a(I)V

    .line 15
    :cond_1
    monitor-exit p1

    goto :goto_0

    :catchall_0
    move-exception p2

    monitor-exit p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p2

    .line 16
    :cond_2
    :goto_0
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p1, p3}, Les/j9;->a(Les/j9;Landroid/media/MediaFormat;)I

    move-result p1

    .line 17
    iget-object p2, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p2}, Les/j9;->f(Les/j9;)Z

    return p1
.end method

.method public a(Les/l9;Z)V
    .locals 1

    .line 1
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "onStop "

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "MediaMuxerWrapper"

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p1}, Les/j9;->a(Les/j9;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 3
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p1}, Les/j9;->d(Les/j9;)V

    goto :goto_0

    .line 4
    :cond_0
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p1, p2}, Les/j9;->a(Les/j9;Z)V

    :goto_0
    return-void
.end method

.method public a(Les/l9;ZLcom/esfile/screen/recorder/media/util/l;)V
    .locals 3

    .line 18
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p1}, Les/j9;->a(Les/j9;)Z

    move-result p1

    if-nez p1, :cond_2

    .line 19
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    monitor-enter p1

    .line 20
    :goto_0
    :try_start_0
    iget-object v0, p0, Les/j9$a;->a:Les/j9;

    invoke-static {v0}, Les/j9;->b(Les/j9;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Les/j9$a;->a:Les/j9;

    invoke-static {v0}, Les/j9;->a(Les/j9;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, "MediaMuxerWrapper"

    .line 21
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "wait muxer ready isaudio:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 22
    :try_start_1
    iget-object v0, p0, Les/j9$a;->a:Les/j9;

    const-wide/16 v1, 0x64

    invoke-virtual {v0, v1, v2}, Ljava/lang/Object;->wait(J)V
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 23
    :catch_0
    :cond_0
    :try_start_2
    iget-object p2, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p2}, Les/j9;->a(Les/j9;)Z

    move-result p2

    if-nez p2, :cond_1

    .line 24
    invoke-virtual {p3}, Lcom/esfile/screen/recorder/media/util/l;->a()V

    .line 25
    monitor-exit p1

    return-void

    .line 26
    :cond_1
    monitor-exit p1

    goto :goto_1

    :catchall_0
    move-exception p2

    monitor-exit p1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    throw p2

    .line 27
    :cond_2
    :goto_1
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p1, p3}, Les/j9;->a(Les/j9;Lcom/esfile/screen/recorder/media/util/l;)V

    return-void
.end method

.method public a(Les/l9;ZLjava/lang/Exception;)V
    .locals 1

    .line 5
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "onError "

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "MediaMuxerWrapper"

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/media/util/k;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 6
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p1, p3}, Les/j9;->a(Les/j9;Ljava/lang/Exception;)V

    .line 7
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p1}, Les/j9;->a(Les/j9;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 8
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p1}, Les/j9;->d(Les/j9;)V

    goto :goto_0

    .line 9
    :cond_0
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p1, p2}, Les/j9;->a(Les/j9;Z)V

    :goto_0
    return-void
.end method

.method public b(Les/l9;Z)V
    .locals 0

    .line 1
    iget-object p1, p0, Les/j9$a;->a:Les/j9;

    invoke-static {p1}, Les/j9;->c(Les/j9;)V

    return-void
.end method

.method public b(Les/l9;ZLandroid/media/MediaFormat;)V
    .locals 0

    return-void
.end method

.method public c(Les/l9;Z)V
    .locals 0

    return-void
.end method
